package com.snail.service;

import co.elastic.clients.elasticsearch.core.SearchResponse;
import com.snail.model.dto.SearchResultDTO;
import com.snail.model.entity.Product;
import com.snail.model.pojo.Result;
import com.snail.model.pojo.SearchHitResult;

import java.io.IOException;
import java.util.List;
/**
 * @author cici
 * @description demo程序，作为模版
 * @date 2025/8/19 14:21
 */
public interface BizSearchService {
    // 模糊查询产品名称
    SearchHitResult<Result> findByNameContaining(String keyword);

    SearchHitResult searchAndTransform(String keyword);

     SearchResponse<Result> searchProductsByClient(String keyword, int page, int size);

     //搜索商品product实体
    SearchResponse<Product> searchProduct(String keyword, int page, int size);

    List<SearchResultDTO> searchAll(String keyword) throws IOException;
}
